-
Notifications
You must be signed in to change notification settings - Fork 0
Batch email test for identity map #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c96e802 to
7fff38b
Compare
| assertThat(response.at("/status").asText()).isEqualTo("success"); | ||
| } | ||
|
|
||
| @ParameterizedTest(name = "/v2/identity/map - {0} - {2}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be clear, did we only want to test v2 identity map here and not v3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want both, but we don't have Identity Map V3 SDK yet. It's not merged, and the tests go via the SDK. I'll add the v3 test when we have the SDK merged.
| private static String randomHash() { | ||
| // This isn't really a hashed DII but looks like one ot UID2 | ||
| byte[] randomBytes = new byte[32]; | ||
| RANDOM.nextBytes(randomBytes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this result in an invalid mapping or would it return some UID2 in the response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be some UID2. We don't check, and cannot possibly check, whether the hash maps back to any valid DII. From our perspective, it's just a certain amount of bytes.
No description provided.